package com.deepblue.image.maker.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName DockerConfigProperties
 * @Description
 * @Author yangxd
 * @Date 2021/9/1 14:28
 * @Version 1.0
 **/
@ConfigurationProperties(prefix = "docker")
@Configuration
@Data
public class DockerConfigProperties {

    /**
     * 连接线程池数量
     */
    private int poolSize;
    /**
     * harbor配置
     */
    private Harbor harbor;

    /**
     * harbor
     */
    @Data
    public static class Harbor {
        /**
         * harbor服务地址
         */
        private String address;
        /**
         * 用户名
         */
        private String userName;
        /**
         * 密码
         */
        private String password;
        /**
         * 默认项目名称
         */
        private String defaultProjectName;
    }
}
